package com.jwaoo.mobile.view.main.model;

import android.content.Context;
import com.dx.as.common.ILoadListener;
import com.jwaoo.mobile.http.HttpHelper;
import http.IHttpListener;

/**
 * Created by jwaoo on 2017/7/21.
 */

public class MainModel extends IHttpListener{

    public MainModel( Context context,ILoadListener loadListener) {
        super( context, loadListener);
    }

    @Override
    public void getData(Object... objects) {
        HttpHelper.getAccountInfo(this);
    }

    @Override
    protected void onResponse(Object response, int flg) {
        this.loadListener.onResponse(response,flg);
    }

    @Override
    protected void onFailure(Throwable t) {
        this.loadListener.onFailure(t);
    }
}
